const routes = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/home",
        name: "home",
        component: () => import("@/dt-lib/pages/home/layout/index.vue"),
        meta: {
            requiresAuth: true,
            history: true,
            title: '首页'
        },
        children: [
            {
                path: "customer_center",
                name: "customer_center",
                meta: {
                    requiresAuth: true,
                    history: false,
                    title: '客户'
                },
                children:[
                    {
                        path: "customer",
                        name: "customer_center_customer",
                        component: () => import("@/dt-lib/pages/home/customerCenter/customer.vue"),
                        meta: {
                            requiresAuth: true,
                            history: true,
                            title: '客户列表'
                        },
                        children:[]
                    },
                    {
                        path: "cart",
                        name: "customer_center_cart",
                        component: () => import("@/dt-lib/pages/home/customerCenter/cart.vue"),
                        meta: {
                            requiresAuth: true,
                            history: true,
                            title: '预约列表'
                        },
                        children:[]
                    },
                    {
                        path: "order",
                        name: "customer_center_order",
                        component: () => import("@/dt-lib/pages/home/customerCenter/order.vue"),
                        meta: {
                            requiresAuth: true,
                            history: true,
                            title: '订单列表'
                        },
                        children:[]
                    },
                    {
                        path: "deposit",
                        name: "customer_center_deposit",
                        component: () => import("@/dt-lib/pages/home/customerCenter/deposit.vue"),
                        meta: {
                            requiresAuth: true,
                            history: true,
                            title: '订金列表'
                        },
                        children:[]
                    },
                ]
            },

        ]
    }
];

export default routes